<%# $Id$  -%>
<h2><%=l(:label_project_reports)%></h2>

<% @report_forms.each do |form| -%>
<h3><%=form.name%></h3>

<table class="list project_reports" style="width:50%;">
  <thead>
    <tr class="project_reports">
      <th class="id">#</th>
      <th class="start_date"><%=l(:field_start_date)%></th>
      <th class="due_date"><%=l(:field_due_date)%></th>
    </tr>
  </thead>
  <tbody>
<% reset_cycle -%>
<%   form.reports.each do |report| -%>
    <tr class="project_report <%= cycle('odd', 'even')%>">
      <td class="id"><%=link_to_if_authorized report.id, {:controller => "project_reports", :action => "show", :id => report.id} %></td>
      <td class="start_date"><%=report.start_date%></td>
      <td class="due_date"><%=report.due_date%></td>
    </tr>
<%   end -%>
  </tbody>
</table>
<% end -%>

